package com.ruifu.proj.permission;

/**
 * 执行人权限
 *
 * @author nyr
 * @create 2019/10/25
 */
public class PermissionExecutor {
    /**
     * 未下达
     */
    public static final Integer NOT_ISSUED = PermissionOperation.EMPTY;

    /**
     * 未启动
     */
    public static final Integer NOT_STARTED = PermissionOperation.OPEN +
            /*PermissionOperation.MODIFY_ATTRIBUTE 2020.5.16去除此权限 执行人无修改权限+*/
            PermissionOperation.START +
            PermissionOperation.CARE_OF +
            /*PermissionOperation.MODIFY_PLAN +*/
            PermissionOperation.MODIFY_OUTPUT_DOCUMENT+
            PermissionOperation.CREATE;///2020.5.19 新增权限

    /**
     * 运行中
     */
    public static final Integer IN_OPERATION = PermissionOperation.OPEN +
            /*PermissionOperation.MODIFY_ATTRIBUTE 2020.5.16去除此权限+*/
            PermissionOperation.SUBMISSION +
            PermissionOperation.CARE_OF +
           /* PermissionOperation.MODIFY_PLAN 2020.5.16去除此权限+*/
            PermissionOperation.MODIFY_OUTPUT_DOCUMENT+
            PermissionOperation.CREATE;
            //PermissionOperation.PROGRESS;//2020.5.28新增修改进度权限

    /**
     * 待审核
     */
    public static final Integer TO_BE_AUDITED = PermissionOperation.OPEN;

    /**
     * 已关闭
     */
    public static final Integer CLOSED = PermissionOperation.OPEN;

    /**
     * 冻结
     */
    public static final Integer FROZEN = PermissionOperation.EMPTY;


}
